This crate contains the traits and primitives used in the
Bolt
protocol. The Message
and Value
enums are of particular importance, and are the primary units of
information sent and consumed by Bolt clients/servers.
The Message
enum encapsulates all possible messages that can be sent between client and server.
See the documentation for more details.
The Value
enum encapsulates all possible values that can be stored in data from each kind of
Message
. Structures like List
and Map
allow Value
s to be nested with arbitrary complexity.
You should rarely ever have to construct variants directly (with the exception of Value::Null
).
Instead, you should typically use Value::from
on the type you wish to convert. See the
documentation for more details.